<?php
/**
 * Created by PhpStorm.
 * User: zhaoxiangyang
 * Date: 2019/12/30
 * Time: 下午4:35
 */

namespace app\home\model;


use think\Model;

class Authentication extends Model
{

    protected $connection = 'db_config2';

    protected $table = 'user_authentication';

    // 新增时自动填充的字段
    protected $insert = ['InsertTime'];

    // 对字段进行处理
    protected function setInsertTimeAttr()
    {
        return date('Y-m-d H:i:s');
    }

}